package yf.mall.dao;

import org.apache.ibatis.annotations.Select;
import yf.mall.entity.SecCodeEntity;
import yf.mall.vo.SecCodeVo;
import org.apache.ibatis.annotations.Mapper;
import com.yf.dao.BaseDao;
import java.util.List;
/**
 * 防伪码Dao
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Fri Jul 28 15:20:42 CST 2023
 */
@Mapper
public interface SecCodeDao extends BaseDao<SecCodeEntity> {

    List<SecCodeVo> findVo(SecCodeVo vo);

    SecCodeVo getVo(Long id);


    @Select("select * from sec_code where code = #{code} order by id desc limit 1")
    SecCodeEntity findByCode(String code);
}
